<template>
  <div class="wrapper" style="height: 100%">
    <router-view />
    <tab-bar @tabTo="onTabTo"></tab-bar>
  </div>
</template>

<script>
import util from "@/utils/util";
import tabBar from "@/components/tabBar";

export default {
  name: "App",
  data() {
    return {
      logo: "https://gw.alicdn.com/tfs/TB1yopEdgoQMeJjy1XaXXcSsFXa-640-302.png",
    };
  },
  components: { tabBar },

  created() {
    util.initIconFont();
  },
  methods: {
    onTabTo(_result) {
      let _key = _result.data.key || "";
      this.$router && this.$router.push("/" + _key);
    },
  },
};
</script>

<style>
body {
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  color: #333;
}
</style>
<style scoped>
.app-wrapper {
  background-color: #f4f4f4;
}
.r-box {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}
</style>
